package com.xuzhen.thread.localVa.two;

public class IntUtil {
	private static IntUtil intUtil;

	private IntUtil() {

	}

	private int c;

	public static IntUtil getInstance() {
		if (intUtil == null) {
			return new IntUtil();
		}
		return intUtil;
	}

	public int add(int a, int b) {
		c = a + b;
		return c;
	}

	public int getC() {
		return c;
	}

	public void setC(int c) {
		this.c = c;
	}
	
}
